package com.yan.project.Test;

import com.yan.core.annotations.Autowired;
import com.yan.core.annotations.Service;

@Service
public class TestAB {

    @Autowired
    private A a;
    @Autowired
    private B b;

    public void transfer() {
        System.out.println("TestAB a-"+a);
        a.print();

        System.out.println("TestAB b-"+b);
        b.print();
    }
}
